<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        
<!--        <div class="layui-form-item">-->
<!--            <label class="layui-form-label">发送对象</label>-->
<!--            <div class="layui-input-block">-->
<!--                <select lay-filter="send_client" name="send_client" id="send_client" lay-verify="required">-->
<!--                    <option value="1">管理员</option>-->
<!--                    <option value="2">消费者</option>-->
<!--                </select>-->
<!--            </div>-->
<!--        </div>-->

        <div class="layui-form-item">
            <label class="layui-form-label">管理员授权</label>
            <div class="layui-input-block">
                {foreach $branch_list as $branch_info}
                <p>
                    <input type="checkbox" lay-filter = 'branch' data-value="{$branch_info.branch_id}"
                           title="{$branch_info.name}" {if condition="$branch_info.checked gt 0"} checked="true" {/if}>
                    <br/>
                    {foreach $branch_info.admins as $admin_info}
                    <input type="checkbox" name="card_author[{$admin_info.id}]" lay-skin="primary"
                           class="branch_{$branch_info.branch_id}"
                           {if condition="$admin_info.checked gt 0"} checked="true" {/if}
                           title="{$admin_info.username}[{$admin_info.remark}]">
                    {/foreach}
                </p>
                {/foreach}
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">单管理员最多授权数量</label>
            <div class="layui-input-block">
                <input type="number" name="num_person" class="layui-input"
                       placeholder="请输入该种代金券数量" value="{$row.num_person}">
            </div>
        </div>


        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>